﻿<!DOCTYPE html>
<html>
<head>
    <title>Lava: Test Page</title>
    <script src="../scripts/lava.js"></script>
    <script type="text/javascript">
        var Car = Lava.Object({
            make: 'Ford',
            model: 'Mustang',
            year: 2013
        });

        Car.extend({
            color: 'blue',
            summary: function () {
                return this.make + ' - ' + this.model + ' - ' + this.year + ' - ' + this.color;      
            } 
        });

    </script>
</head>
<body>
    <!--<span data-bind="{text: Todo.a}"></span><br>-->
    <span data-bind="{text: Car.summary(), style.color: Car.color}"></span>
</body>
</html>